PHP and MySQL question
by Robin Goodfellow <robin(at)vmedia.com.au>
|
Date: |
Wed, 6 Aug 2003 12:48:15 +0930 |
To: |
susanfriesen(at)telus.net, hwg-techniques(at)mail.hwg.org |
|
todo: View
Thread,
Original
|
|
Hi Susan,
try something like this;
<?
$publish = $_POST['publish'] ;
${'publish_'.$publish} = "checked=\"checked\"" ;
?>
then in your form...
<.input type="radio" name="publish" value="yes"
<?print($publish_yes);?>>Publish
<.input type="radio" name="publish" value="no"
<?print($publish_no);?>>Don't Publish
At 12:21 -0600 2003-08-04, susanfriesen(at)telus.net wrote:
>Hi folks,
>Is there anyone out there using phpMyAdmin 2.3.0 that can show me how to
>enter a new row into a table? I've inherited this software and I don't have
>any experience with it. I know SQL at a beginner's level, so figured I could
>easily add in a new row! (Technically, it's adding in a new column to the
>table, but phpMyAdmin seems to call it a row?)
>
>>From the "Structure" page, I assume I click on the "Insert" button? But
>where do I go from there? Any kind helpers out there?
>
>
>Also, I am modifying the PHP generated input form and I can't figure out how
>to do radio buttons. This form is to allow us to view all the information
>that was originally inputted, so we can edit the information if need be.
>This is what I've got:
>
><.input type="radio" name="publish_yes" value="<?=$publish_yes?>">Publish
><.input type="radio" name="publish_no" value="<?=$publish_no?>">Don't
>Publish
>
>But the two options are not "one or the other", I can click on both and each
>value will show as "on". What do I have to change here?
>
>I appreciate any help!
>
>Susan
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA